# coding=utf-8
# !/usr/bin/python
import requests

# 请求百度首页
resp = requests.get('https://www.baidu.com')

print(resp)  # 打印请求结果的状态码
print(resp.content)  # 打印请求到的网页源码
